# -*- coding: utf-8 -*-
from rest_framework import routers
from apps.project.views import ProjectViewSet
from django.urls import path,re_path
system_url = routers.SimpleRouter()
system_url.register(r'project', ProjectViewSet)

urlpatterns = [
    re_path('upload/', ProjectViewSet.as_view({'post':'upload'}), name='cad上传'),
    re_path('anslye/(?P<pk>.*?)/', ProjectViewSet.as_view({'get':'anslye'}), name='重新分析'),
    re_path('excel/(?P<pk>.*?)/', ProjectViewSet.as_view({'get':'excel'}), name='下载excel'),
]
urlpatterns += system_url.urls
